﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models.PlatForm.Entities
{
    /// <summary>
    /// 常用字段
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2018-11-29 
    /// </summary>
    [Table("BASE_COMFIELDS")]
    public class ComFieldsEntity
    {
        /// <summary>
        /// 自然主键
        /// </summary>
        [Key]
        [Column("F_ID")]
        public string Id { get; set; }
        /// <summary>
        /// 字段注释
        /// </summary>
        [Column("F_FIELDNAME")]
        public string FieldName { get; set; }
        /// <summary>
        /// 列名
        /// </summary>
        [Column("F_FIELD")]
        public string Field { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        [Column("F_DATATYPE")]
        public string DataType { get; set; }
        /// <summary>
        /// 长度
        /// </summary>
        [Column("F_DATALENGTH")]
        public string DataLength { get; set; }
        /// <summary>
        /// 允许空
        /// </summary>
        [Column("F_ALLOWNULL")]
        public int? AllowNull { get; set; }
        /// <summary>
        /// 排序码(默认0)
        /// </summary>
        [Column("F_SORTCODE")]
        public long? SortCode { get; set; }
        /// <summary>
        /// 有效标志(默认1)
        /// </summary>
        [Column("F_ENABLEDMARK")]
        public int? EnabledMark { get; set; }
        /// <summary>
        /// 描述说明
        /// </summary>
        [Column("F_DESCRIPTION")]
        public string Description { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("F_CREATORTIME")]
        public DateTime? CreatorTime { get; set; }
        /// <summary>
        /// 创建用户id
        /// </summary>
        [Column("F_CREATORUSERID")]
        public string CreatorUserId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("F_LASTMODIFYTIME")]
        public DateTime? LastModifyTime { get; set; }
        /// <summary>
        /// 修改用户id
        /// </summary>
        [Column("F_LASTMODIFYUSERID")]
        public string LastModifyUserId { get; set; }
        /// <summary>
        /// 删除标志(默认0)
        /// </summary>
        [Column("F_DELETEMARK")]
        public int? DeleteMark { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        [Column("F_DELETETIME")]
        public DateTime? DeleteTime { get; set; }
        /// <summary>
        /// 删除用户id
        /// </summary>
        [Column("F_DELETEUSERID")]
        public string DeleteUserId { get; set; }
    }
}
